package com.zxq.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品对象 iot_product
 * 
 * @author ruoyi
 * @date 2022-09-14
 */
public class IotProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 数据包id */
    @Excel(name = "数据包id")
    private Long packetId;

    /**
     * 数据包名称
     */
    @Excel(name = "数据包名称")
    private String packetName;

    /** 传输端口 */
    @Excel(name = "传输端口")
    private Long transferPort;

    /** 协议族Id */
    @Excel(name = "协议族Id")
    private Long protocolType;

    /** 产品状态 */
    @Excel(name = "产品状态")
    private Long state;

    /** 创建人 */
    private Long creator;

    /** 创建时间 */
    private Date createDate;

    /** 更新人 */
    private Long updater;

    /** 更新时间 */
    private Date updateDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPacketId(Long packetId) 
    {
        this.packetId = packetId;
    }

    public Long getPacketId() 
    {
        return packetId;
    }
    public void setTransferPort(Long transferPort) 
    {
        this.transferPort = transferPort;
    }

    public Long getTransferPort() 
    {
        return transferPort;
    }
    public void setProtocolType(Long protocolType) 
    {
        this.protocolType = protocolType;
    }

    public Long getProtocolType() 
    {
        return protocolType;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdater(Long updater) 
    {
        this.updater = updater;
    }

    public Long getUpdater() 
    {
        return updater;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    public String getPacketName() {
        return packetName;
    }

    public void setPacketName(String packetName) {
        this.packetName = packetName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("packetId", getPacketId())
            .append("transferPort", getTransferPort())
            .append("protocolType", getProtocolType())
            .append("state", getState())
            .append("remark", getRemark())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .append("updater", getUpdater())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
